package com.gz.payment.zookeeper.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.UUID;

@RestController
@RequestMapping("/pay/api")
public class PaymentController {

    @Value("${server.port}")
    private String port;

    @GetMapping("zk/test")
    public HashMap<String, String> getMessage() {
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("port", port);
        map.put("message", "success"+ UUID.randomUUID().toString());
        return map;
    }
}
